package com.es.www.xml;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.es.www.xml.service.DogService;

/**
 * @Created by michangtao
 * @Date 2022/2/7 13:55
 * @Description
 */
public class XmlAopApplication {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("aop/aop-aspect.xml");
        DogService dogService = ctx.getBean(DogService.class);
        dogService.bark();
        dogService.eat("狗粮");
        dogService.find("骨头");
    }
}
